<div class="yiiForm">

    <p>
        Fields with <span class="required">*</span> are required.
    </p>

    <?php echo CHtml::beginForm(); ?>

    <?php echo CHtml::errorSummary($model); ?>


    <div class="simple">
        <?php echo CHtml::activeLabelEx($model,'email'); ?>
        <?php echo CHtml::activeTextField($model,'email',array('size'=>40,'maxlength'=>64)); ?>
    </div>
    <div class="simple">
        <?php echo CHtml::activeLabelEx($model,'password'); ?>
        <?php echo CHtml::activePasswordField($model,'password',array('size'=>20,'maxlength'=>20)); ?>
    </div>
    <div class="simple">
        <?php echo CHtml::activeLabelEx($model,'cpassword'); ?>
        <?php echo CHtml::activePasswordField($model,'cpassword',array('size'=>20,'maxlength'=>20)); ?>
    </div>
    <div class="simple">
        <?php echo CHtml::activeLabelEx($model,'first_name'); ?>
        <?php echo CHtml::activeTextField($model,'first_name',array('size'=>40,'maxlength'=>64)); ?>
    </div>
    <div class="simple">
        <?php echo CHtml::activeLabelEx($model,'last_name'); ?>
        <?php echo CHtml::activeTextField($model,'last_name',array('size'=>40,'maxlength'=>64)); ?>
    </div>
    <div class="simple">
        <?php echo CHtml::activeLabelEx($model,'nickname'); ?>
        <?php echo CHtml::activeTextField($model,'nickname',array('size'=>40,'maxlength'=>64)); ?>
    </div>
    <div class="simple">
        <?php echo CHtml::activeLabelEx($model,'home_page_url'); ?>
        <?php echo CHtml::activeTextField($model,'home_page_url',array('size'=>40,'maxlength'=>255)); ?>
    </div>
    <?php if(Yii::app()->user->isGuest && extension_loaded('gd')): ?>
    <div class="simple">
	<?php echo CHtml::activeLabel($model,'verifyCode'); ?>
	<div>
	<?php $this->widget('CCaptcha'); ?>
	<?php echo CHtml::activeTextField($model,'verifyCode'); ?>
	</div>
	<p class="hint">Please enter the letters as they are shown in the image above.
	<br/>Letters are not case-sensitive.</p>
    </div>
    <?php endif; ?>
    
    <!--
    <?php /*
    <div class="simple">
        <?php echo CHtml::activeLabelEx($model,'language_id'); ?>
        <?php echo CHtml::activeTextField($model,'language_id'); ?>
    </div>
    <div class="simple">
        <?php echo CHtml::activeLabelEx($model,'birthdate'); ?>
        <?php echo CHtml::activeTextField($model,'birthdate'); ?>
    </div>
    <div class="simple">
        <?php echo CHtml::activeLabelEx($model,'timezone_ofs'); ?>
        <?php echo CHtml::activeTextField($model,'timezone_ofs'); ?>
    </div>
    <div class="simple">
        <?php echo CHtml::activeLabelEx($model,'gender'); ?>
        <?php echo CHtml::activeTextField($model,'gender',array('size'=>0,'maxlength'=>0)); ?>
    </div>
     */ ?>
    -->
    <div class="action">
        <?php echo CHtml::submitButton('Preview'); ?>
    </div>

    <?php echo CHtml::endForm(); ?>

</div><!-- yiiForm -->